App({
  onLaunch: function () {
    // wx.cloud.init({
    //   traceUser: true
    // })
    wx.getSystemInfo({
      success: (res) => {
        this.globalData.systeminfo = res
        this.globalData.isIPhoneX = /iphonex/gi.test(res.model.replace(/\s+/, ''))
      },
    })
  },
  globalData: {
    systeminfo: {},
    isIPhoneX: false,
    keepscreenon: false,
    key: '635806ad82374069aeac6ed350214429',
    weatherIconUrl: 'https://cdn.heweather.com/cond_icon/',
    requestUrl: {
      weather: 'https://free-api.heweather.com/s6/weather',
      hourly: 'https://free-api.heweather.com/s6/weather/hourly',
    }
  }
})